import java.util.ArrayList;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28463
 * Date: 2022—06—19
 * Time: 18:27
 */
//模拟存储所有Book数据的数据库
public class BookDB {
    private static ArrayList<Book> bkDB=new ArrayList<Book>();

    static {
        bkDB.add(new Book("Java程序设计",45,1));
        bkDB.add(new Book("C语言程序设计",45,2));
        bkDB.add(new Book("C++程序设计",45,3));
        bkDB.add(new Book("Python程序设计",45,4));
        bkDB.add(new Book("Go语言程序设计",45,5));
    }

    public static ArrayList<Book> getAll(){
        return bkDB;
    }
}